package com.ysd.entity;

import java.util.Date;

public class Order {
	private Integer id;
	private Date datetime;
	private Integer userId;
	private String state;
	private Integer addressId;
	private Integer productId;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Date getDatetime() {
		return datetime;
	}
	public void setDatetime(Date datetime) {
		this.datetime = datetime;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Integer getAddressId() {
		return addressId;
	}
	public void setAddressId(Integer addressId) {
		this.addressId = addressId;
	}
	public Integer getProductId() {
		return productId;
	}
	public void setProductId(Integer productId) {
		this.productId = productId;
	}
	public Order(Integer id, Date datetime, Integer userId, String state, Integer addressId, Integer productId) {
		super();
		this.id = id;
		this.datetime = datetime;
		this.userId = userId;
		this.state = state;
		this.addressId = addressId;
		this.productId = productId;
	}
	public Order() {
		super();
	}
	@Override
	public String toString() {
		return "Order [id=" + id + ", datetime=" + datetime + ", userId=" + userId + ", state=" + state + ", addressId="
				+ addressId + ", productId=" + productId + "]";
	}
	
	
	
}
